Skip to content

Add KiloCode support to install/uninstall command#53

Closed
harshil480 wants to merge 1 commit intoDeusData:mainfrom
harshil480:main
Closed

Add KiloCode support to install/uninstall command#53
harshil480 wants to merge 1 commit intoDeusData:mainfrom
harshil480:main

Conversation

@harshil480
Copy link
Contributor

Summary

  • Register MCP server in KiloCode's global MCP configuration during install
  • Remove MCP server entry from KiloCode config during uninstall
  • Uses KiloCode MCP config format with mcpServers key and command path

KiloCode stores MCP configuration in:

~/.config/Code/User/globalStorage/kilocode.kilo-code/settings/mcp_settings.json

This PR automatically adds the codebase-memory-mcp server entry during install and removes it during uninstall.


Changes

  • install.go

    • Added kilocodeConfigPath()
    • Added installKiloCodeMCP()
    • Added removeKiloCodeMCP()
    • Integrated with existing install/uninstall flow following the same pattern used for other MCP clients.
  • install_test.go

    • Added tests for:

      • Config path generation
      • MCP server installation
      • Preservation of existing settings
      • Clean uninstall

Test Plan

  • TestKiloCodeConfigPath — verifies correct config path resolution
  • TestKiloCodeMCPInstall — creates config and registers MCP server
  • TestKiloCodeMCPPreservesSettings — ensures existing settings are preserved
  • TestKiloCodeMCPUninstall — verifies MCP entry removal

All existing tests pass:

go test ./cmd/codebase-memory-mcp -count=1

Screenshots -- provided below

KiloCode MCP configuration example after install:

{
  "mcpServers": {
    "codebase-memory-mcp": {
      "command": "/path/to/codebase-memory-mcp"
    }
  }
}

KiloCode MCP settings UI showing registered server.


Notes

This follows the same client integration pattern used for other MCP clients in the repository.

Adding KiloCode support allows users who run KiloCode as their MCP client to automatically install and manage the codebase-memory-mcp server using the existing CLI install/uninstall commands.

@harshil480
Copy link
Contributor Author

image (47) Untitled design 1

DeusData added a commit that referenced this pull request Mar 19, 2026
- KiloCode: detect globalStorage dir, upsert mcp_settings.json, install
  global rules at ~/.kilocode/rules/codebase-memory-mcp.md
- Zed: parse JSONC (comments + trailing commas) in existing settings.json
  — fixes "Invalid JSON" error on install with existing Zed config
- 2 new tests: KiloCode detection, Zed JSONC settings parsing
- Now supports 8 agents: Claude Code, Codex, Gemini, Zed, OpenCode,
  Antigravity, Aider, KiloCode

Co-Authored-By: David34920 <[email protected]>
Co-Authored-By: Paul Cohen <[email protected]>
Co-Authored-By: Chitral Verma <[email protected]>
Co-Authored-By: Noel Kurian <[email protected]>
Co-Authored-By: José Almeida <[email protected]>
Co-Authored-By: Vasani Harshil <[email protected]>
@DeusData
Copy link
Owner

Implemented natively in 442cb95 — shipping with v0.5.0.

KiloCode support now includes:

  • Agent detection (checks ~/.config/Code/User/globalStorage/kilocode.kilo-code/)
  • MCP config upsert at mcp_settings.json (same mcpServers format you identified)
  • Global instructions at ~/.kilocode/rules/codebase-memory-mcp.md
  • Full uninstall support

Thanks for the PR @harshil480 — your config path research and test plan directly informed the implementation. You're credited as a co-author on commit 442cb95.

Note: This repo moved from Go to C since your PR was opened, so Go-based PRs can no longer be merged directly. But the contribution is fully credited.

@DeusData DeusData closed this Mar 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants